﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BusinessObjects.Objects;
using SharedBusinessLogic.Models;
using GUI.Base;
using GUI.Controllers;
using GUI.Controls;

namespace GUI.Forms
{
	public partial class OrganisationOverviewForm : BaseOverviewForm
	{
		#region Members

		private OrganisationOverviewController controller;
		
		#endregion

		#region Construction

		public OrganisationOverviewForm(OrganisationOverviewController orgOverviewController)
		{
			this.controller = orgOverviewController;
			InitializeComponent();
			
		}

		#endregion

		#region Properties


		#endregion

		#region Methods

		private void OrganisationOverviewForm_FormClosed(object sender, FormClosedEventArgs e)
		{
			if (IsDirty)
			{
				controller.Save();
			}
		}
				
		

		#endregion

	}
}
